package cn.edu.neusoft.wuguangsheng.flowerimpression.activity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import cn.edu.neusoft.wuguangsheng.flowerimpression.R;

public class RetrievePasswordActivity extends BaseActivity implements View.OnClickListener {
    ImageView reps_fh;
    LinearLayout reps_phone,reps_email;

    @Override
    void initView() {
        setLayout_file(R.layout.activity_retrieve_password);
        reps_fh = (ImageView)findViewById(R.id.reps_fh);
        reps_phone = (LinearLayout)findViewById(R.id.reps_phone);
        reps_email = (LinearLayout)findViewById(R.id.reps_email);

    }

    @Override
    void initEvent() {
        reps_fh.setOnClickListener(this);
        reps_phone.setOnClickListener(this);
        reps_email.setOnClickListener(this);

    }

    @Override
    void initDate() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.reps_fh:
                finish();
                break;
            case R.id.reps_phone:
                Intent intent = new Intent(RetrievePasswordActivity.this,FindPhonePasswordActivity.class);
                startActivity(intent);
                break;
            case R.id.reps_email:
                Intent intent1 = new Intent(RetrievePasswordActivity.this,FindEmailPasswordActivity.class);
                startActivity(intent1);
                break;
        }
    }
}
